package org.springboot.base;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * APP 主启动类
 *
 */
@SpringBootApplication
@MapperScan("org.springboot.base.*.mapper")  //开启自动扫描
@EnableCaching				//开启使用缓存
@EnableTransactionManagement  //开启使用事务
public class AppMain{
    public static void main( String[] args)  {
        SpringApplication.run(AppMain.class, args); 
    }
}
